using System;
using System.Globalization;
using System.Windows.Data;

namespace Cirrostrata.CycleList.CaliburnFramework
{
    public class EnumToResourceConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            string result = String.Format("/Resources/{0}.png", value);
            return result;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}